<#macro head>
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/select2/select2.min.css?v=3653060703">
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/bootstrap/datetimepicker/bootstrap-datetimepicker.min.css?v=3553060703">
<link rel="stylesheet" type="text/css" href="${request.contextPath}/assets/alone/css/modernforms.css?v=3553060703">
</#macro>

<#macro foot>

<script type="text/javascript" src="${request.contextPath}/assets/select2/PingYin.js?v=3653060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/select2/select2.js?v=3653060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/select2/i18n/zh-CN.js?v=3653060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/bootstrap/datetimepicker/bootstrap-datetimepicker.min.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/bootstrap/datetimepicker/bootstrap-datetimepicker.zh-CN.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/alone/js/modernforms.js?v=3553060703"></script>
<script type="text/javascript" src="${request.contextPath}/assets/alone/js/form.js?v=3553060703"></script>
</#macro>

<#macro container id="" float="left" width="100%" >
<div class="modern-forms" id="${id}" style="float:${float};width:${width};margin-right:10px;display: flex">
    <div class="modern-container">
        <form>
            <#nested/>
        </form>
    </div>
</div>
</#macro>

<#macro row id="">
<div class="form-row" id=${id}>
    <#nested />
</div>
</#macro>

<#macro group name="" id="">
<div class="form-group" id=${id}>
    <div class="form-group-name">${name}</div>
    <#nested />
</div>
</#macro>

<#macro fieldset legend="" background="">
<fieldset <#if background!="">style="background: ${background}"</#if>>
    <#if legend!="">
        <legend>${legend}</legend>
    </#if>
    <div class="form-row">
        <#nested />
    </div>
</fieldset>
</#macro>

<#macro input_text
size=12
icon=""
placeholder="请输入"
label=""
id=""
name=""
defVal=""
readonly="false"
onClick=""
disabled="false"
display="true"
>
<div class="col col-${size}" <#if display!="true">style="display: none"</#if>>
    <div class="field-group <#if icon!="">prepend-icon"</#if>>
        <input id="${id}" name="${name}" type="text" class="mdn-input" placeholder=${placeholder}
                value="${defVal}"
               data-defVal="${defVal}" ${(readonly=="true")?string("readonly","")} ${(disabled=="true")?string("disabled","")}
               onClick="${onClick}">
        <label class="mdn-label">${label}</label>
        <#if icon!="">
            <span class="mdn-icon"><i class="fa ${icon}"></i></span>
        </#if>
        <span class="mdn-msg msg-hidden right"></span>
        <span class="mdn-bar"></span>
    </div>
</div>
</#macro>

<#macro input_textarea
id=""
name=""
defVal=""
readonly="false"
label=""
placeholder="请输入"
size=12
>
<div class="col col-${size}">
    <div class="field-group">
        <textarea id="${id}" name="${name}" class="mdn-textarea" ${(readonly=="true")?string("readonly","")}
                  placeholder=${placeholder}>${defVal}</textarea>
        <label class="mdn-label">${label}</label>
        <span class="mdn-bar"></span>
    </div>
</div>
</#macro>

<#macro input_password
size=12
icon=""
placeholder="请输入"
label=""
id=""
name=""
defVal=""
readonly="false"
onClick=""
>
<div class="col col-${size}">
    <#if icon=="">
    <div class="field-group">
    <#else>
    <div class="field-group prepend-icon">
    </#if>
    <input id="${id}" name="${name}" type="password" class="mdn-input" placeholder=${placeholder}
            value="${defVal}" data-defVal="${defVal}" ${(readonly=="true")?string("readonly","")} onClick="${onClick}">
    <label class="mdn-label">${label}</label>
    <#if icon!="">
        <span class="mdn-icon"><i class="fa ${icon}"></i></span>
    </#if>
    <span class="mdn-msg msg-hidden right"></span>
    <span class="mdn-bar"></span>
</div>
</div>
</#macro>

<#macro input_number
size=12
icon=""
placeholder="0"
label=""
id=""
name=""
defVal=0
readonly="false"
onClick=""
disabled="false"
>
    <div class="col col-${size}">
        <div class="field-group <#if icon!="">prepend-icon"</#if>>
            <input id="${id}" name="${name}" type="number" class="mdn-input" placeholder="${placeholder}"
                   value="${defVal}"
                   data-defVal="${defVal}" ${(readonly=="true")?string("readonly","")} ${(disabled=="true")?string("disabled","")}
                   onClick="${onClick}">
            <label class="mdn-label">${label}</label>
            <#if icon!="">
                <span class="mdn-icon"><i class="fa ${icon}"></i></span>
            </#if>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>
</#macro>

<#macro select2
id=""
name=""
label=""
size=12
sysc=true
onchange=""
oneLine=false
>
    <div class="col col-${size}">
        <div class="field-group prepend-icon ${(oneLine=="true")?string("one-line","")}">
            <select id="${id}" name="${name}" sysc="${sysc}" onchange="${onchange}" style="width: 100%">
                <#nested />
            </select>
            <label class="mdn-label">${label}</label>
            <span class="mdn-icon"><i class="fa fa-list"></i></span>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>
</#macro>

<#macro check_input_text
size=12
icon=""
placeholder="请输入"
label=""
id=""
name=""
defVal=""
readonly="false"
>
    <div class="col col-${size}">
        <div class="field-group <#if icon!="">prepend-icon"</#if>>
            <input id="${id}" name="${name}" type="text" class="mdn-input" placeholder=${placeholder}
                    value="${defVal}" data-defVal="${defVal}" readonly disabled>
            <label class="mdn-option mdn-label">
                <input type="checkbox" class="checkbox-text">
                <span class="mdn-checkbox" style="top:-5px;margin-bottom: -10px;"></span>
                <span class="option-label">${label}</span>
            </label>
            <#if icon!="">
                <span class="mdn-icon"><i class="fa ${icon}"></i></span>
            </#if>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>
</#macro>

<#macro input_text_design
size=12
icon=""
placeholder="请输入"
label=""
id=""
name=""
defVal=""
readonly="false"
>
    <div class="col col-${size}">
        <div class="field-group <#if icon!="">prepend-icon"</#if>>
            <input id="${id}" name="${name}" type="text" class="mdn-input" placeholder=${placeholder}
                    value="${defVal}" data-defVal="${defVal}" ${(readonly=="true")?string("readonly","")}>
            <label class="mdn-label">${label}</label>
            <#if icon!="">
                <span class="mdn-icon"><i class="fa ${icon}"></i></span>
            </#if>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
            <span class="btn btn-blue">编辑</span>
        </div>
    </div>
</#macro>

<#macro radio
size=12
icon=""
label=""
id=""
name=""
checked="true"
disabled="false">
    <div class="col col-${size}">
        <div class="field-group">
            <label class="mdn-label">${label}</label>
            <label class="mdn-switch modern-switch">
                <input type="radio" id="${id}"
                       name="${name}" ${(checked=="true")?string("checked","")} ${(disabled=="true")?string("disabled","")}/>
                <span class="switch-toggle"></span>
            </label>
        </div>
    </div>
</#macro>


<#macro checkbox
size=12
icon=""
label=""
id=""
name=""
checked="true"
disabled="false"
onClick="">
    <div class="col col-${size}">
        <div class="field-group">
            <label class="mdn-label">${label}</label>
            <label class="mdn-switch"><#-- modern-switch -->
                <input type="checkbox" id="${id}"
                       name="${name}" ${(checked=="true")?string("checked=\"checked\"","")} ${(disabled=="true")?string("disabled","")}
                       onClick="${onClick}"/>
                <span class="switch-toggle"></span>
            </label>
        </div>
    </div>
</#macro>

<#macro date
id=""
name=""
size=12
title="日期"
placeholder="请输入日期yyyy-mm-dd"
format="yyyy-mm-dd"
readonly="false"
>
    <div class="col col-${size}">
        <div class="field-group prepend-icon">
            <input id="${id}" name="${name}" type="text" class="mdn-input mydatepicker" data-date-format="${format}"
                   placeholder=${placeholder} ${(readonly=="true")?string("readonly","")}>
            <label class="mdn-label">${title}</label>
            <span class="mdn-icon"><i class="fa fa-calendar"></i></span>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>
</#macro>

<#macro yearList
id=""
name=""
size=12
label="选择年份"
sysc=true
onchange=""
oneLine=false
>
    <div class="col col-${size}">
        <div class="field-group prepend-icon ${(oneLine=="true")?string("one-line","")}">
            <select id="${id}" name="${name}" sysc="${sysc}" onchange="${onchange}" style="width: 100%">
                <#assign maxYear =.now?string("yyyy")?number+1>
                <#list 2016..(maxYear) as t>
                    <option value="${t}"
                        <#if "${t}" == .now?string("yyyy")>
                            selected="true"
                        </#if>
                    >${t?c}</option>
                </#list>
            </select>
            <label class="mdn-label">${label}</label>
            <span class="mdn-icon"><i class="fa fa-list"></i></span>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>

</#macro>

<#macro yearListOption>
    <#assign maxYear =.now?string("yyyy")?number+1>
    <#list 2016..(maxYear) as t>
        <option value="${t}"
            <#if "${t}" == .now?string("yyyy")>
                selected="true"
            </#if>
        >${t?c}</option>
    </#list>
</#macro>

<#macro analysis_toolBar>
    <div id="menuBar">
        <div id="ybType" class="am-icon-umbrella">
            <span class="active TA" value="1"> 省医保</span> / <span class="TA" value="2">市医保</span>
        </div>
        <div id="rq" class="am-icon-calendar">
        ${.now?string("yyyy年M月")}
        </div>
    </div>
    <div id="calendarBox" class="TA">
        <div id="calendar">
            <div class="year">

                <#assign maxYear =.now?string("yyyy")?number+1>
                <#list 2016..(maxYear) as t>
                    <span id="${t}"
                        <#if "${t}" == .now?string("yyyy")>
                          class="active"
                        </#if>
                    >${t}</span>
                </#list>
            </div>
            <div class="month">
                <#list 1..12 as t>
                    <span id="${t}"
                        <#if "${t}" == .now?string("M")>
                          class="active"
                        </#if>
                    >${t}</span>
                </#list>
            </div>
        </div>
        <div id="thisMonth" class="am-icon-sun-o TA"> 本月<br><span style="font-size: 9px">Current Month</span></div>
    </div>
</#macro>

<#macro input_file
size=12
icon=""
placeholder="请输入"
label=""
id=""
name=""
defVal=""
readonly="false"
onClick=""
disabled="false"
display="true"
>
    <div class="col col-${size}" <#if display!="true">style="display: none"</#if>>
        <div class="field-group <#if icon!="">prepend-icon"</#if>>
            <input id="${id}" name="${name}" type="file" class="mdn-input" placeholder=${placeholder}
                    value="${defVal}"
                   data-defVal="${defVal}" ${(readonly=="true")?string("readonly","")} ${(disabled=="true")?string("disabled","")}
                   onClick="${onClick}">
            <label class="mdn-label">${label}</label>
            <#if icon!="">
                <span class="mdn-icon"><i class="fa ${icon}"></i></span>
            </#if>
            <span class="mdn-msg msg-hidden right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>
</#macro>
<#macro datetime
id=""
name=""
size=12
title="日期"
placeholder="请输入日期yyyy-mm-dd HH:mi:ss"
readonly="false"
>
    <div class="col col-${size}">
        <div class="field-group prepend-icon">
            <input id="${id}" name="${name}" type="text" class="mdn-input mydatetimepicker"
                   placeholder=${placeholder} ${(readonly=="true")?string("readonly","")}/>
            <label class="mdn-label">${title}</label>
            <span class="mdn-icon"><i class="fa fa-calendar"></i></span>
            <span class="mdn-msg right"></span>
            <span class="mdn-bar"></span>
        </div>
    </div>
</#macro>